import java.util.Scanner;
   public class classe {
	public static void main(String[] args) {
	   double media=0;
	   int soma=0;
           int i;
	   int[] vetor=new int[10];
	   Scanner sc= new Scanner(System.in);
	   for (i = 0;i<10; i++){
		System.out.println("insira o valor");
		vetor[i] =sc.nextInt();
   		soma= soma+vetor[i];
	   }
           for ( i=0; i<10; i++){
              System.out.print("vetor ["+i+"] =" +vetor+" ");
           }

           media = (double)soma / i;
           System.out.println("soma do vetor" + soma);
           System.out.println("media do vetor" + media);
       }
   }
